package com.itany.cloud.controller;

import com.itany.cloud.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 石小俊
 */
@RestController
@RequestMapping("/product")
public class ProductController {

    @Autowired
    private ProductService productService;

    @GetMapping("/find")
    public String findProduct(){
        productService.find();
        return "find获取成功";
    }

    @GetMapping("/get")
    public String getProduct(){
        productService.find();
        return "get获取成功";
    }

}
